<div class="bjui-pageContent">
    <form action="{:U('save_subject')}" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="id" value="{$va.id}"/>
        <div class="form-group">
            <label class="x100">专题标题:</label>
            <input type="text" name="title" data-rule="required" class="w400" value="{$va.title}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">封面:</label>
            <div class="pull-left parent_img">
            <if condition="$va.photo eq null">
                <img src="__PU__/images/58008889b30bc.jpg" alt="LOGO" width="70" />
            <else/>
                <img src="{$va.photo}" alt="LOGO" width="70" />
            </if>
                <input type="hidden" name="photo" value="{$va.photo}"/>
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload')}"
                 data-file-type-exts="*.png;*.jpg"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传封面"
                ></span>
            </div>
        </div>
        <p class="text-danger">
                         注:所有上传的JS和CSS,不能删除,只有上传相同的名字替换原来的文件
        </p>
        <div class="form-group clearfix parent_img">
            <label class="x100 pull-left">自定义CSS:</label>
            <div class="pull-left">
                <if condition="$va.css neq null">
                <span>css目录：{$va.css}</span>
                </if>
                <input type="hidden" name="css" value="{$va.css}"/>
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload',array('type'=>1))}"
                 data-file-type-exts="*.png;*.jpg"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传CSS"
                ></span>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">自定义JS:</label>
            <div class="pull-left parent_img">
                <if condition="$va.js neq null">
                <span>js目录：{$va.js}</span>
                </if>
                <input type="hidden" name="js" value="{$va.js}"/>
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload',array('type'=>2))}"
                 data-file-type-exts="*.png;*.jpg"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传JS"
                ></span>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="x100 text-top">html代码: </label>
            <p><span class="text-warning">注意:若要使用某些前端框架,强烈建议使用CDN地址引用, <a href="http://cdn.code.baidu.com/" target="_blank">查看CDN</a></span></p>
            <p><span class="text-warning">注意:在使用自定义CSS和JS位置,请放置, __$css__, __$js__ 标签</span></p>
            <div class="pull-left" style="width: 100%">
                <textarea name="content" style="width: 100%; height: 400px;">{$va.content}</textarea>
            </div>
        </div>
    </form>
</div>
<include file="Common/footer" ftype="save" />